package com.weilai.service;

import com.weilai.domain.User;
import java.lang.String;

import java.util.List;

public interface UserService {

    //查询所有用户
    public List<User> getAllUsers();

    //按id查询用户
    public User getUserById(int id);

    //按名字查询用户
    public User getUserByUsername(String username);

    //用户注册
    public void insertUser(User user);

    //修改用户信息
    public void updateUser(User user);

    // 按 id 删除用户信息
    public boolean deleteUserById(int id);

    //按邮箱查找用户
    public User getUserByEmail(String email);

    //查询用户名是否存在
    public Boolean checkUsernameExists(String username);
    //根据用户名关键字查询
    List<User> selectByKeywords(String Keywords);


}